package com.bitejiuyeke.forum.services;

import com.bitejiuyeke.forum.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 666
 * Date: 2024-02-08
 * Time: 16:18
 */
public interface IArticleReplyService {
    /**
     *  创建文章回复
     * @param articleReply
     */
    @Transactional
    void create(ArticleReply  articleReply);

    /**
     * 根据帖子id，查询所有回复
     * @param articleId
     * @return
     */
    List<ArticleReply> selectByArticleId(Long articleId);
}
